//
//  MsgManager.h
//  FootPrint
//
//  Created by alex tao on 5/7/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "InfoQueryResponse.pb.h"

@interface MsgManager : NSObject {
    
    NSMutableArray *        _eventList;
    NSMutableArray *        _inviteList;
    NSMutableArray *        _merchantList;
    NSMutableArray *        _urlList;
    
    NSString *              _rootDict;
    
}

+ (MsgManager*) sharedInstance;

- (void)mergeInfo:(InfoQueryResponseMessage*)info;

- (NSArray*) pushMsgOfName:(NSString*)name;

- (void) removeMsg:(NSDictionary*)msg;
- (void) addMsg:(NSDictionary*)msg;
- (BOOL) isMsgExist:(NSDictionary*)msg;

- (void) loadIndex;

+ (NSDictionary*) makeEventMsg:(long long)eventId andTitle:(NSString*)title andUrl:(NSString*)imgUrl;
+ (NSDictionary*) makeInviteMsg:(long long)userId;

@end
